package com.pig4cloud.pig.module.api.entity.platform;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * 【请填写功能名称】对象 platform_help
 *
 * @author ruoyi
 * @date 2021-10-30
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
@TableName("platform_help")
public class PlatformHelp implements Serializable {

    private static final long serialVersionUID = 1L;


    /**
     * $column.columnComment
     */
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;

    /**
     * 标题
     */
    private String title;

    /**
     * 父标题id
     */
    private Long parentId;

    /**
     * 排序索引
     */
    private Long sort;

    /**
     * 添加时间
     */
    @TableField(fill = FieldFill.INSERT)
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    /**
     * 状态 0 - 不显示  1 - 显示
     */
    private Integer state;

    /**
     * 内容
     */
    private String content;


	/** 子菜单 */
	@TableField(exist = false)
	private List<PlatformHelp> children = new ArrayList<>();
}
